import service from '@/utils/axios'

export const GET_LOGIN_IMG = () => {
  return service.get('/user/captcha')
}
export interface ILogin {
  username: string
  password: string
  captcha: string
}
export const DO_LOGIN = (data: ILogin) => {
  return service({
    url: '/staff/login',
    method: 'post',
    data: data
  })
}
